<?php
$title = "NJU网上商城 - 商品信息";
$css = "compare.css";
include_once 'common/top.php';
?>
<div id="compare">
<div id="compare_top"></div>
<div id="compare_show">
<div id="compare_select">
	<form action="compare.php" method="get">
	<table>
		<tr>
			<th colspan="2">
				<p>请选择对比商品</p>
			</th>
		</tr>
		<tr>
			<td>
				<p>商品1：</p>
				<select name="product1">
					<option>商品名</option>
					<option>商品名</option>
					<option>商品名</option>
					<option>商品名</option>
					<option>商品名</option>
				</select>
			</td>
			<td>
				<p>商品2：</p>
				<select name="product2">
					<option>商品名</option>
					<option>商品名</option>
					<option>商品名</option>
					<option>商品名</option>
					<option>商品名</option>
				</select>
			</td>
		</tr>
	</table>
	<br/>
	<input type="submit" value=""/>
	</form>
	<div id="product">
	<table>
	<tr>
	<?php for($i=0;$i<2;$i++){?>
	<td>
	<div class="pro_detail">
		<table>
		<tr>
		<td valign="top">
			<img alt="商品" width="100" src="../image/item_none.png">
		</td>
		<td valign="top">
			<table>
			<tr>
				<th colspan="2"><h4><a href="item.php?id=0">商品名</a></h4></th>
			</tr>
			<tr>
				<th>
					<p>市场价格：</p>
				</th>
				<td>
					<p class="no">￥0.00</p>
				</td>
			</tr>
			<tr>
				<th>
					<p>现&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价：</p>
				</th>
				<td>
					<p class="price">￥0.00</p>
				</td>
			</tr>
			<tr>
				<th>
					<p>发&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;货：</p>
				</th>
				<td>
					<p>快递：10.00元 &nbsp;&nbsp; EMS：10.00元</p>
				</td>
			</tr>
			<tr>
				<th>
					<p>已&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;售：</p>
				</th>
				<td>
					<p class="sold">0</p>
					<p>件</p>
				</td>
			</tr>
			<tr>
				<th>
					<p>评&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价：</p>
				</th>
				<td>
				<?php 
				$num_start=floor($score);
				$left=$score-$num_start;
				for($k=0;$k<$num_start;$k++)
				{
				?>
				<img src="../image/item_start.png">
				<?php 
				}
				if($left<0.5)
				{
				for($k=0;$k<5-$num_start;$k++)
				{
				?>
				<img src="../image/item_start_none.png">
				<?php 
					
				}
				}else//>=0.5
				{
				?>
				<img src="../image/item_start_half.png">
				<?php 
				for($k=0;$k<5-$num_start-1;$k++)
				{
				?>
				<img src="../image/item_start_none.png">
				<?php 	
				}
				}
				?>
					<p><?php echo $score;?>
				</td>
			</tr>
			<tr>
				<th>
					<p>积&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;分：</p>
				</th>
				<td>
					<p class="green">0</p>
					<p>分</p>
				</td>
			</tr>
			</table>
		</td>
		</tr>
		<tr>
		<td colspan="2">
			<p>
				商品介绍
			</p>
		</td>
		</tr>
		</table>
	</div>
	</td>
	<?php }?>
	</tr>
	</table>
	</div>
</div>
</div>
<div id="compare_end"></div>
</div>

<?php
include_once 'common/tail.php';
?>